/*
 * @Author: gyk
 * @Date: 2022-12-16 14:19:34
 * @LastEditors: wang.zhiqin wang.zhiqin@trs.com.cn
 * @LastEditTime: 2023-03-02 23:04:27
 * @FilePath: \njbdc-ui\src\directive\loadmore\loadmore.js
 * @Description:
 *
 */
export default {
    bind(el, binding) {
        el.addEventListener('scroll', function() {
            const sign = 0;
            const scrollDistance =
                this.scrollHeight - this.scrollTop - this.clientHeight;
            if (scrollDistance <= sign) {
                binding.value();
            }
        });
    }
};
